#!/bin/bash
for LV in `lsvg -Lo | xargs -I {} lsvg -Ll {} | grep -v sysdump | egrep -v ':|LV NAME' | cut -d' ' -f1`
do
	COPIES=$(lslv -L $LV | grep COPIES | awk '{print $2}')
	if [ $COPIES -le 1 ]
	then
		echo $HOST $LV is NOT mirrored
	else
		echo $HOST $LV is mirrored
	fi
done
